package com.bluse.DesignModel.test;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class AppMain {

    public static void main (String [] args){

        ApplicationContext context =  new AnnotationConfigApplicationContext(ApplicalicationConfig.class);

        HelloWrold helloWrold = context.getBean(HelloWrold.class);
        helloWrold.setMessage("hello wrold");
        System.out.println(helloWrold.getMessage());

    }

}
